import { http } from "../Utils/reqest.js";

export const reg = function (data) {
  return http({
    url: "/reg",
    method: "post",
    data,
  });
};

export const login = function (data) {
  return http({
    url: "/login",
    method: "post",
    data,
  });
};

export const check = (data) => {
  return http({
    url: "/checkName",
    method: "get",
    params: { uname: data },
  });
};
